package com.songlanyun.modules.keywordsearch.controller.admin;

import com.songlanyun.common.utils.PageUtils;
import com.songlanyun.common.utils.R;
import com.songlanyun.modules.keywordsearch.service.SystemKeyWordSearchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;


/**
 * 关键词搜索
 *
 * @author zx
 * @email 
 * @date 2021-03-06 11:32:25
 */
@RestController
@RequestMapping("admin/keyword/search")
public class SystemKeyWordSearchAdminController {
    @Autowired
    private SystemKeyWordSearchService systemKeyWordSearchService;

    /**
     * 分页显示
     */
    @RequestMapping("/page")
    public R page(@RequestParam Map<String, Object> params){
        PageUtils page = systemKeyWordSearchService.queryPage(params);
        return R.ok().put("page", page);
    }

}
